home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / sizeof.tex < prev    next >
LaTeX Document  |  1994-04-27  |  1.4 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: sizeof.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 73 69 7a 65 6f 66 20 |\section|{sizeof |
|00000010| 2d 2d 2d 20 41 62 73 6f | 6c 75 74 65 20 56 61 6c |--- Abso|lute Val|
|00000020| 75 65 7d 0d 5c 6c 61 62 | 65 6c 7b 66 6e 3a 73 69 |ue}.\lab|el{fn:si|
|00000030| 7a 65 6f 66 7d 0d 5c 69 | 6e 64 65 78 7b 73 69 7a |zeof}.\i|ndex{siz|
|00000040| 65 6f 66 28 29 7d 0d 5c | 69 6e 64 65 78 7b 7d 0d |eof()}.\|index{}.|
|00000050| 5c 69 6e 64 65 78 7b 7d | 0d 5c 62 65 67 69 6e 7b |\index{}|.\begin{|
|00000060| 72 61 69 6c 7d 0d 53 69 | 7a 65 4f 66 20 3a 20 27 |rail}.Si|zeOf : '|
|00000070| 73 69 7a 65 6f 66 27 20 | 27 28 27 20 28 28 53 63 |sizeof' |'(' ((Sc|
|00000080| 61 6c 61 72 29 20 7c 20 | 28 4d 61 74 72 69 78 29 |alar) | |(Matrix)|
|00000090| 20 7c 20 28 53 74 72 69 | 6e 67 29 20 7c 20 28 4c | | (Stri|ng) | (L|
|000000a0| 69 73 74 29 29 20 27 29 | 27 20 3b 0d 5c 65 6e 64 |ist)) ')|' ;.\end|
|000000b0| 7b 72 61 69 6c 7d 0d 0d | 54 68 65 20 5c 76 65 72 |{rail}..|The \ver|
|000000c0| 62 2b 73 69 7a 65 6f 66 | 2b 20 66 75 6e 63 74 69 |b+sizeof|+ functi|
|000000d0| 6f 6e 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |on retur|ns the n|
|000000e0| 75 6d 62 65 72 20 6f 66 | 20 62 79 74 65 73 20 6f |umber of| bytes o|
|000000f0| 66 20 64 61 74 61 20 69 | 6e 20 74 68 65 0d 61 72 |f data i|n the.ar|
|00000100| 67 75 6d 65 6e 74 2e 20 | 20 54 68 69 73 20 69 73 |gument. | This is|
|00000110| 20 73 6f 6d 65 77 68 61 | 74 20 6d 61 63 68 69 6e | somewha|t machin|
|00000120| 65 20 64 65 70 65 6e 64 | 65 6e 74 3b 20 74 68 6f |e depend|ent; tho|
|00000130| 75 67 68 20 69 6e 20 67 | 65 6e 65 72 61 6c 2c 20 |ugh in g|eneral, |
|00000140| 74 68 65 0d 73 69 7a 65 | 20 6f 66 20 61 3a 0d 5c |the.size| of a:.\|
|00000150| 62 65 67 69 6e 7b 64 65 | 73 63 72 69 70 74 69 6f |begin{de|scriptio|
|00000160| 6e 7d 0d 20 5c 69 74 65 | 6d 5b 72 65 61 6c 20 73 |n}. \ite|m[real s|
|00000170| 63 61 6c 61 72 5d 20 69 | 73 20 74 68 65 20 73 61 |calar] i|s the sa|
|00000180| 6d 65 20 61 73 20 61 20 | 43 20 64 6f 75 62 6c 65 |me as a |C double|
|00000190| 20 74 79 70 65 2e 0d 20 | 5c 69 74 65 6d 5b 63 6f | type.. |\item[co|
|000001a0| 6d 70 6c 65 78 20 73 63 | 61 6c 61 72 5d 20 69 73 |mplex sc|alar] is|
|000001b0| 20 74 77 69 63 65 20 61 | 73 20 6c 61 72 67 65 20 | twice a|s large |
|000001c0| 61 73 20 61 20 72 65 61 | 6c 20 73 63 61 6c 61 72 |as a rea|l scalar|
|000001d0| 2e 0d 20 5c 69 74 65 6d | 5b 6d 61 74 72 69 78 5d |.. \item|[matrix]|
|000001e0| 20 69 73 20 65 71 75 61 | 6c 20 74 6f 20 74 68 65 | is equa|l to the|
|000001f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 65 6c 65 6d 65 | number |of eleme|
|00000200| 6e 74 73 20 6d 75 6c 74 | 69 70 6c 69 65 64 20 62 |nts mult|iplied b|
|00000210| 79 20 74 68 65 0d 20 20 | 20 73 69 7a 65 20 6f 66 |y the. | size of|
|00000220| 20 74 68 65 20 65 6c 65 | 6d 65 6e 74 73 20 28 72 | the ele|ments (r|
|00000230| 65 61 6c 20 6f 72 20 63 | 6f 6d 70 6c 65 78 29 2e |eal or c|omplex).|
|00000240| 0d 20 5c 69 74 65 6d 5b | 73 74 72 69 6e 67 5d 20 |. \item[|string] |
|00000250| 69 73 20 65 71 75 61 6c | 20 74 6f 20 74 68 65 20 |is equal| to the |
|00000260| 6e 75 6d 62 65 72 20 6f | 66 20 63 68 61 72 61 63 |number o|f charac|
|00000270| 74 65 72 73 2e 0d 20 5c | 69 74 65 6d 5b 6c 69 73 |ters.. \|item[lis|
|00000280| 74 5d 20 69 73 20 65 71 | 75 61 6c 20 74 6f 20 74 |t] is eq|ual to t|
|00000290| 68 65 20 73 75 6d 20 6f | 66 20 74 68 65 20 73 69 |he sum o|f the si|
|000002a0| 7a 65 73 20 6f 66 20 74 | 68 65 20 65 6c 65 6d 65 |zes of t|he eleme|
|000002b0| 6e 74 73 2c 20 61 73 73 | 75 6d 69 6e 67 20 72 65 |nts, ass|uming re|
|000002c0| 61 6c 0d 73 63 61 6c 61 | 72 73 20 61 72 65 20 70 |al.scala|rs are p|
|000002d0| 72 6f 6d 6f 74 65 64 20 | 74 6f 20 63 6f 6d 70 6c |romoted |to compl|
|000002e0| 65 78 20 73 63 61 6c 61 | 72 73 20 77 69 74 68 69 |ex scala|rs withi|
|000002f0| 6e 20 74 68 65 20 6c 69 | 73 74 2e 0d 5c 65 6e 64 |n the li|st..\end|
|00000300| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0d 0d 5c |{descrip|tion}..\|
|00000310| 70 61 72 61 67 72 61 70 | 68 7b 45 78 61 6d 70 6c |paragrap|h{Exampl|
|00000320| 65 7d 0d 5c 69 6e 64 65 | 78 7b 65 78 61 6d 70 6c |e}.\inde|x{exampl|
|00000330| 65 20 6f 66 20 73 69 7a | 65 6f 66 28 29 7d 0d 5c |e of siz|eof()}.\|
|00000340| 69 6e 64 65 78 7b 73 69 | 7a 65 6f 66 28 29 21 65 |index{si|zeof()!e|
|00000350| 78 61 6d 70 6c 65 7d 0d | 5c 62 65 67 69 6e 7b 76 |xample}.|\begin{v|
|00000360| 65 72 62 61 74 69 6d 7d | 0d 3e 20 73 69 7a 65 6f |erbatim}|.> sizeo|
|00000370| 66 28 32 2e 34 33 32 29 | 0d 20 20 20 20 20 20 20 |f(2.432)|. |
|00000380| 20 38 0d 3e 20 73 69 7a | 65 6f 66 28 31 2b 33 6a | 8.> siz|eof(1+3j|
|00000390| 29 0d 20 20 20 20 20 20 | 20 31 36 0d 3e 20 61 20 |). | 16.> a |
|000003a0| 3d 20 72 61 6e 64 28 32 | 2c 34 29 0d 20 61 20 3d |= rand(2|,4). a =|
|000003b0| 0d 20 20 20 20 20 20 20 | 20 31 20 20 20 20 20 20 |. | 1 |
|000003c0| 30 2e 36 34 37 20 20 20 | 20 20 30 2e 30 33 36 39 |0.647 | 0.0369|
|000003d0| 20 20 20 20 20 20 30 2e | 36 36 35 0d 20 20 20 20 | 0.|665. |
|000003e0| 30 2e 39 37 35 20 20 20 | 20 20 20 30 2e 33 33 33 |0.975 | 0.333|
|000003f0| 20 20 20 20 20 20 30 2e | 31 36 32 20 20 20 20 20 | 0.|162 |
|00000400| 30 2e 30 38 34 37 0d 3e | 20 73 69 7a 65 6f 66 28 |0.0847.>| sizeof(|
|00000410| 61 29 0d 20 20 20 20 20 | 20 20 36 34 0d 3e 20 73 |a). | 64.> s|
|00000420| 69 7a 65 6f 66 28 22 31 | 32 33 34 35 36 37 38 39 |izeof("1|23456789|
|00000430| 30 22 29 0d 20 20 20 20 | 20 20 20 31 30 0d 3e 20 |0"). | 10.> |
|00000440| 73 74 72 20 3d 20 22 54 | 68 69 73 20 73 74 72 69 |str = "T|his stri|
|00000450| 6e 67 20 68 61 73 20 32 | 39 20 63 68 61 72 61 63 |ng has 2|9 charac|
|00000460| 74 65 72 73 22 0d 20 73 | 74 72 20 3d 0d 54 68 69 |ters". s|tr =.Thi|
|00000470| 73 20 73 74 72 69 6e 67 | 20 68 61 73 20 32 39 20 |s string| has 29 |
|00000480| 63 68 61 72 61 63 74 65 | 72 73 0d 3e 20 73 69 7a |characte|rs.> siz|
|00000490| 65 6f 66 28 73 74 72 29 | 0d 20 20 20 20 20 20 20 |eof(str)|. |
|000004a0| 32 39 0d 3e 20 73 69 7a | 65 6f 66 28 3c 3c 32 3e |29.> siz|eof(<<2>|
|000004b0| 3e 29 0d 20 20 20 20 20 | 20 20 31 36 0d 3e 20 73 |>). | 16.> s|
|000004c0| 69 7a 65 6f 66 28 3c 3c | 33 2b 33 6a 3e 3e 29 0d |izeof(<<|3+3j>>).|
|000004d0| 20 20 20 20 20 20 20 31 | 36 0d 3e 20 73 69 7a 65 | 1|6.> size|
|000004e0| 6f 66 28 3c 3c 4d 61 74 | 72 69 78 41 20 3d 20 61 |of(<<Mat|rixA = a|
|000004f0| 3e 3e 29 0d 20 20 20 20 | 20 20 20 36 34 0d 5c 65 |>>). | 64.\e|
|00000500| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0d 0d 53 65 |nd{verba|tim}..Se|
|00000510| 65 20 61 6c 73 6f 3a 20 | 50 61 67 65 7e 5c 70 61 |e also: |Page~\pa|
|00000520| 67 65 72 65 66 7b 66 6e | 3a 73 69 7a 65 7d 20 5c |geref{fn|:size} \|
|00000530| 76 65 72 62 2b 73 69 7a | 65 28 29 2b 2c 0d 50 61 |verb+siz|e()+,.Pa|
|00000540| 67 65 7e 5c 70 61 67 65 | 72 65 66 7b 66 6e 3a 77 |ge~\page|ref{fn:w|
|00000550| 68 6f 7d 20 5c 76 65 72 | 62 2b 77 68 6f 28 29 2b |ho} \ver|b+who()+|
|00000560| 2c 0d 50 61 67 65 7e 5c | 70 61 67 65 72 65 66 7b |,.Page~\|pageref{|
|00000570| 66 6e 3a 77 68 6f 73 7d | 20 5c 76 65 72 62 2b 77 |fn:whos}| \verb+w|
|00000580| 68 6f 73 28 29 2b 2e 0d | 0d 5c 6e 65 77 70 61 67 |hos()+..|.\newpag|
|00000590| 65 0d 0d 0d 0d 0d 0d | |e...... | |
+--------+-------------------------+-------------------------+--------+--------+